<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!--Edit Dishes-->
            <div class="panel-body">
                <h1 class="center-font">编辑菜品</h1>
                <form role="form" action="${pageContext.request.contextPath }/homes/editFood?fId=${param.fId }&fViewPath=${param.fViewPath}" method="post"  class="login-form"  enctype="multipart/form-data">
                    <div class="form-group">
                        <label>Food Name</label>
                        <div class="input-group">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-info-sign"></span> </span>
                            <input type="text" class="form-control" id="fname" name="fName" value="${param.fName }" placeholder="蔡明...">
                        </div>
                    </div>
                    <div class="form-group">
                        <label>Price</label>
                        <div class="input-group">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-yen"></span> </span>
                            <input type="number" class="form-control" id="price" name="fPrice" value="${param.fPrice }" placeholder="价格...">
                        </div>
                    </div>
                    <div class="form-group">
                        <label>Food Image</label>
                        <div class="input-group">
                        	<img src="${myPicServer }${param.fViewPath}">
                        </div>
                        <input type="file" class="" id="fpic" name="foodPic">
                        <p class="help-block">Upload food image.</p>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-common login-btn">Submit</button>
                    </div>
                </form>
            </div>